package com.renjian.spring.day04.priactice.wanquanzhujie;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
    @org.junit.Test
    public void test(){
        ApplicationContext context=
                new AnnotationConfigApplicationContext(Config.class);
        Book book = context.getBean("book", Book.class);
        book.buy();
    }
}
